//import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;


import java.util.Date;
import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: xiaotutu
 * Date: 2023-09-25
 * Time: 19:16
 */

class Student {
    private String name;
    public int age;

    public void doClass() {
        System.out.println(this.name + " 在上课!");
    }
    public Student() {
        //this.name = "zhangsan";
        //this("zhangsan",18);
        System.out.println("这是没有参数的构造方法!");
    }

    public Student(String name) {
        this.name = name;
        System.out.println("这是调用name参数的构造方法");
    }

    public Student(int age) {
        this.age = age;
        System.out.println("这是调用年龄参数的构造方法!");
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
        System.out.println("这是调用两个参数的构造方法!");
    }
}

public class Test {

    public static void main(String[] args) {
        int[] array = {1,2,3,4};
        Arrays.sort(array);
        System.out.println(Arrays.toString(array));
        /*java.util.Arrays.sort(array);
        System.out.println(java.util.Arrays.toString(array));
        java.util.Date date = new java.util.Date();*/
        //Date date = new Date(1);
        Date date = new Date();
    }

    public static void main1(String[] args) {
        /*String s = "nihao";
        System.out.println("s = "+s);*//*
        Student student = null;
        student.hello();*/
        Student student1 = new Student();
        //student1.name = "zhangsan";
        student1.age = 18;
//        Student student2 = new Student("zhangsan");
//        Student student3 = new Student(18);
//        Student student4 = new Student("zhangsan",18);
        student1.doClass();
    }
}
